package com.mysteel.cart.feign;

import com.mysteel.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;
import java.util.List;

/**
 * ProjectName: mail
 * ClassName: ProductFeignService
 * Description:
 * date: 2021/03/16/016 10:01
 *
 * @author xiaochao
 */
@FeignClient("product")
public interface ProductFeignService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/saleAttrList/{skuId}")
    List<String> getSkuSaleAttrValueById(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skuinfo/{skuId}/price")
    BigDecimal getPriceBySkuId(@PathVariable("skuId") Long skuId);
}
